﻿using System;
using System.Linq;
using BO.News;
using System.Text;
using BugManager;

namespace GUI.Controls.Sport
{
    public partial class SubCategories : System.Web.UI.UserControl
    {

        private const string BreadcrumbFormat = "<div itemscope itemtype=\"http://data-vocabulary.org/Breadcrumb\"><a href=\"{0}\" itemprop=\"url\"><span itemprop=\"title\">{1}</span></a>{2}</div>";
        private const string Seperator = " › ";
        protected void Page_Load(object sender, EventArgs e)
        {
            //var breadcrumb = new StringBuilder();
            //breadcrumb.AppendFormat(BreadcrumbFormat, "/", "soha.vn", Seperator);
            //breadcrumb.AppendFormat(BreadcrumbFormat, "/the-thao.htm", "thể thao",string.Empty);
            //ltrBreadcrumb.Text = breadcrumb.ToString();
            //try
            //{
            //    var urls = NewsBO.GetSportSubMenu();
            //    if (urls != null && urls.Any())
            //    {
            //        var sb = new StringBuilder();
            //        foreach (var url in urls)
            //        {
            //            sb.AppendFormat("<li><a href=\"{0}\" title=\"{2}\">{1}</a></li>", url.Url, url.Text, url.Title);
            //        }
            //        ltrData.Text = sb.ToString();
            //        return;
            //    }
            //}
            //catch (Exception ex)
            //{
            //    ErrorManager.Log(ex.Message);
            //}
            Visible = false;
        }

    }
}